<template>
	<view class="detail-bottom">
		<view class="navButton" @click="botClick(0)">
			<image src="./tabbar1.png" mode=""></image>
			首页
		</view>
		<view class="navButton" @click="botClick(1)">
			<image src="./tabbar3.png" mode=""></image>
			购物车
		</view>
		<view class="trolley" @click="botClick(2)">加入购物车</view>
		<view class="buy" @click="botClick(3)">立即购买</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		props: {
			
			
			
		},
		
		methods: {
			
			botClick(i){
				
				this.$emit("click",i);
				
			},
		}
	}
	
</script>

<style>
	.detail-bottom {
		position: fixed;
		bottom: 0;
		z-index: 9;
		background: #fff;
		width: 100%;
		display: flex;
		height: 100rpx;
	}

	.buy {
		height: 100rpx;
		width: 275rpx;
		background: #007AFF;
		text-align: center;
		color: #fff;
		font-size: 30rpx;
		line-height: 100rpx;
	}

	.trolley {
		height: 100rpx;
		flex: 1;
		background: #0BBBEF;
		text-align: center;
		color: #fff;
		font-size: 30rpx;
		line-height: 100rpx;
	}

	.navButton {
		width: 100rpx;
		font-size: 24rpx;
		text-align: center;
		color: #999;
	}

	.navButton image {
		width: 40rpx;
		height: 40rpx;
		display: block;
		margin: 10rpx auto 5rpx;
	}
</style>